package com.topc.oj.result;


import com.topc.oj.enums.CodeStatusEnum;

public class CodeRunResult {

    private CodeStatusEnum codeStatusEnum;

    private String contentInfo;

    private String errorInfo;

    public CodeStatusEnum getCodeStatusEnum() {
        return codeStatusEnum;
    }

    public CodeRunResult setCodeStatusEnum(CodeStatusEnum codeStatusEnum) {
        this.codeStatusEnum = codeStatusEnum;
        return this;
    }

    public String getContentInfo() {
        return contentInfo;
    }

    public CodeRunResult setContentInfo(String contentInfo) {
        this.contentInfo = contentInfo;
        return this;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public CodeRunResult setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
        return this;
    }

    @Override
    public String toString() {
        return "CodeRunResult{" +
                "codeStatusEnum=" + codeStatusEnum +
                ", contentInfo='" + contentInfo + '\'' +
                ", errorInfo='" + errorInfo + '\'' +
                '}';
    }
}
